%===============================================================================
% Home-Brew file compression
% This is a pretty hacky implementation
%===============================================================================
function [zipped, info] = homeBrewCompression(A, fileName)
  if nargin <2
    fileName = 'compressedFile.ascii';
  end
  
  imageVector = scanZigZag(A);
  imageVectorUint = uint8(imageVector);
  [zipped, info] = norm2huff(imageVectorUint);

%{   
  save fileName zipped -ascii;
  picFileQuery = dir(fileName);
  fileBytes = picFileQuery.bytes;
%}  
  
  
  


